<?php
	$moduleId = $this->module->getId();
	$cs = Yii::app()->getClientScript();
	$cs->registerCssFile($this->getModule()->assetsUrl.'/hq.css');

	$this->widget('bootstrap.widgets.BootNavbar', array(
	'fixed'=>'top',
	'brand'=>'SRO-ADMIN',
	'brandUrl'=>HOME_URL . '/hq/',

	'items'=>array(
		array(
			'class'=>'bootstrap.widgets.BootMenu',
			'htmlOptions'=>array('class'=>'pull-left'),
			'items'=>array(
				array('label'=>Yii::t('label', 'Quản trị tài khoản'), 'url'=>array('/hq/account'),'visible'=>!Yii::app()->hqUser->isGuest),
//				array('label'=>Yii::t('label', 'Log Nạp tiền ngân hàng'), 'url'=>array('/hq/logChargeBank'),'visible'=>!Yii::app()->hqUser->isGuest),
//				array('label'=>Yii::t('label', 'Log Chuyển tiền'), 'url'=>array('/hq/logTransfer'),'visible'=>!Yii::app()->hqUser->isGuest),
			),
		),
		array(
			'class'=>'bootstrap.widgets.BootMenu',
			'htmlOptions'=>array('class'=>'pull-right'),
			'items'=>array(
				array('label'=>Yii::t('label', 'Tài khoản quản trị'), 'url'=>array('/hq/user/role'),'visible'=>!Yii::app()->hqUser->isGuest),
				array('label'=>Yii::t('label', 'Log'), 'url'=>array('/hq/yiiLog'),'visible'=>!Yii::app()->hqUser->isGuest),
				'----',
				array('label'=>'Đăng xuất ('.Yii::app()->hqUser->name.')', 'url'=>array('/hq/user/signOut', 'ru'=>Yii::app()->request->requestUri), 'visible'=>!Yii::app()->hqUser->isGuest),
				array('label'=>'Đăng nhập', 'url'=>array('/hq/user/signIn', 'ru'=>Yii::app()->request->requestUri), 'visible'=>Yii::app()->hqUser->isGuest),
			),
		),
	),
)); ?>